<template>
	<view class="introBox">
		<view class="introItem" v-if="detail.positional">
			<view class="title">
				<text class="bz">#</text> 获得的职称
			</view>
			<view class="con">{{detail.positional}}</view>
		</view>
		<view class="introItem" v-if="detail.honors">
			<view class="title">
				<text class="bz">#</text> 获得的荣誉
			</view>
			<view class="con">{{detail.honors}}</view>
		</view>
		<view class="introItem" v-if="detail.pastJobs">
			<view class="title">
				<text class="bz">#</text> 社会职务
			</view>
			<view class="con">{{detail.pastJobs}}</view>
		</view>
		<view class="introItem">
			<view class="title">
				<text class="bz">#</text> 擅长领域
			</view>
			<view class="con">{{detail.speciality}}</view>
		</view>
		<view class="introItem">
			<view class="title">
				<text class="bz">#</text> 自述
			</view>
			<view class="con">{{detail.tearcherIntroduction}}</view>
		</view>
	</view>
</template>

<script>
	import {defineComponent,reactive,toRefs,onMounted,getCurrentInstance,computed} from 'vue'
	import {onLoad,onShow} from '@dcloudio/uni-app'
	import { useStore } from 'vuex'
	import bodyWrap from "@/components/bodyWrap/index.vue"
	export default defineComponent({
		components:{
			bodyWrap
		},
		props:{
			detail:Object
		},
		setup(props,context) {
			const store = useStore()
			const {proxy} = getCurrentInstance()
			
			const state = reactive({
				active:1
			})
			
			onMounted(()=>{
				
			})
			

			
			return {
				...toRefs(state),
			}
		}
	})
</script>

<style lang="scss" scoped>
	.introBox{
		.introItem{
			&+.introItem{
				margin-top: 20rpx;
			}
			.title{
				display: flex;
				align-items: center;
				height: 80rpx;
				font-size: 32rpx;
				font-weight: bold;
				.bz{
					display: flex;
					align-items: center;
					justify-content: center;
					height: 34rpx;
					width: 34rpx;
					background-color: #ca0000;
					color: #fff;
					font-size: 32rpx;
					border-radius: 8rpx;
					margin: 0 10rpx 0 0;
				}
			}
			.con{
				color: #999;
				font-size: 32rpx;
				line-height: 50rpx;
			}
		}
	}
</style>
